<html>
	<head>
		
		<title>Report Setoran Bank</title>
		<style>
			#list_setoran_bank{
				font-size: 10px;
			}
			thead{
				background-color: black;
				color: white;
			}
		</style>
	</head>
	<body>
		<center><h1>Laporan Setoran Bank</h1>
		<br/>
		<img src="./media/images/logo2.png"/>
		<br/>
		Periode : <?php echo $tgl_awal?> s/d <?php echo $tgl_akhir?>
		<br/>
		Cabang : <?php echo $cabang?>
		</center>
		<br/><br/>
		<table id="list_setoran_bank" width="800" align="center" border="0">
			<thead>
				<tr>
					<th>No</th>
					<th>Kasir</th>
					<th>Cabang Kasir</th>
					<th>Cabang Keberangkatan</th>
					<th>Tanggal</th>
					<th>No. Resi</th>
					<th>Jumlah</th>
				</tr>
			</thead>
			<tbody>
				<?php for($i=0;$i<count($list_result);$i++){?>
				<tr>
					<td align="center"><?php echo $i+1?></td>
					<td align="center"><?php echo $list_result[$i]['nama']?></td>
					<td align="center"><?php echo $list_result[$i]['kode_cabang']?></td>
					<td align="center">
					<?php 
					for($j=0;$j<count($list_result[$i]['cabang']);$j++){
						if ($j!=0)
							echo ', ';
						echo $list_result[$i]['cabang'][$j]['cabang_keberangkatan'];
					}?>
					</td>
					<td align="center"><?php echo $list_result[$i]['tanggal']?></td>
					<td align="center"><?php echo $list_result[$i]['noresi']?></td>
					<td align="center">Rp. <?php echo number_format($list_result[$i]['total'],0,'.',',')?></td>
				</tr>
				<?php }
						?>
			</tbody>
		</table>
	</body>
</html>